package com.example.houduan.domain;

import java.util.ArrayList;
import java.util.List;

public class F_sbExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public F_sbExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUidIsNull() {
            addCriterion("`uid` is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("`uid` is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(String value) {
            addCriterion("`uid` =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(String value) {
            addCriterion("`uid` <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(String value) {
            addCriterion("`uid` >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(String value) {
            addCriterion("`uid` >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(String value) {
            addCriterion("`uid` <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(String value) {
            addCriterion("`uid` <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLike(String value) {
            addCriterion("`uid` like", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotLike(String value) {
            addCriterion("`uid` not like", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<String> values) {
            addCriterion("`uid` in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<String> values) {
            addCriterion("`uid` not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(String value1, String value2) {
            addCriterion("`uid` between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(String value1, String value2) {
            addCriterion("`uid` not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andDataIsNull() {
            addCriterion("`data` is null");
            return (Criteria) this;
        }

        public Criteria andDataIsNotNull() {
            addCriterion("`data` is not null");
            return (Criteria) this;
        }

        public Criteria andDataEqualTo(String value) {
            addCriterion("`data` =", value, "data");
            return (Criteria) this;
        }

        public Criteria andDataNotEqualTo(String value) {
            addCriterion("`data` <>", value, "data");
            return (Criteria) this;
        }

        public Criteria andDataGreaterThan(String value) {
            addCriterion("`data` >", value, "data");
            return (Criteria) this;
        }

        public Criteria andDataGreaterThanOrEqualTo(String value) {
            addCriterion("`data` >=", value, "data");
            return (Criteria) this;
        }

        public Criteria andDataLessThan(String value) {
            addCriterion("`data` <", value, "data");
            return (Criteria) this;
        }

        public Criteria andDataLessThanOrEqualTo(String value) {
            addCriterion("`data` <=", value, "data");
            return (Criteria) this;
        }

        public Criteria andDataLike(String value) {
            addCriterion("`data` like", value, "data");
            return (Criteria) this;
        }

        public Criteria andDataNotLike(String value) {
            addCriterion("`data` not like", value, "data");
            return (Criteria) this;
        }

        public Criteria andDataIn(List<String> values) {
            addCriterion("`data` in", values, "data");
            return (Criteria) this;
        }

        public Criteria andDataNotIn(List<String> values) {
            addCriterion("`data` not in", values, "data");
            return (Criteria) this;
        }

        public Criteria andDataBetween(String value1, String value2) {
            addCriterion("`data` between", value1, value2, "data");
            return (Criteria) this;
        }

        public Criteria andDataNotBetween(String value1, String value2) {
            addCriterion("`data` not between", value1, value2, "data");
            return (Criteria) this;
        }

        public Criteria andFnameIsNull() {
            addCriterion("fname is null");
            return (Criteria) this;
        }

        public Criteria andFnameIsNotNull() {
            addCriterion("fname is not null");
            return (Criteria) this;
        }

        public Criteria andFnameEqualTo(String value) {
            addCriterion("fname =", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotEqualTo(String value) {
            addCriterion("fname <>", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameGreaterThan(String value) {
            addCriterion("fname >", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameGreaterThanOrEqualTo(String value) {
            addCriterion("fname >=", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameLessThan(String value) {
            addCriterion("fname <", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameLessThanOrEqualTo(String value) {
            addCriterion("fname <=", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameLike(String value) {
            addCriterion("fname like", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotLike(String value) {
            addCriterion("fname not like", value, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameIn(List<String> values) {
            addCriterion("fname in", values, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotIn(List<String> values) {
            addCriterion("fname not in", values, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameBetween(String value1, String value2) {
            addCriterion("fname between", value1, value2, "fname");
            return (Criteria) this;
        }

        public Criteria andFnameNotBetween(String value1, String value2) {
            addCriterion("fname not between", value1, value2, "fname");
            return (Criteria) this;
        }

        public Criteria andFsfzIsNull() {
            addCriterion("fsfz is null");
            return (Criteria) this;
        }

        public Criteria andFsfzIsNotNull() {
            addCriterion("fsfz is not null");
            return (Criteria) this;
        }

        public Criteria andFsfzEqualTo(String value) {
            addCriterion("fsfz =", value, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzNotEqualTo(String value) {
            addCriterion("fsfz <>", value, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzGreaterThan(String value) {
            addCriterion("fsfz >", value, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzGreaterThanOrEqualTo(String value) {
            addCriterion("fsfz >=", value, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzLessThan(String value) {
            addCriterion("fsfz <", value, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzLessThanOrEqualTo(String value) {
            addCriterion("fsfz <=", value, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzLike(String value) {
            addCriterion("fsfz like", value, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzNotLike(String value) {
            addCriterion("fsfz not like", value, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzIn(List<String> values) {
            addCriterion("fsfz in", values, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzNotIn(List<String> values) {
            addCriterion("fsfz not in", values, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzBetween(String value1, String value2) {
            addCriterion("fsfz between", value1, value2, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFsfzNotBetween(String value1, String value2) {
            addCriterion("fsfz not between", value1, value2, "fsfz");
            return (Criteria) this;
        }

        public Criteria andFphoneIsNull() {
            addCriterion("fphone is null");
            return (Criteria) this;
        }

        public Criteria andFphoneIsNotNull() {
            addCriterion("fphone is not null");
            return (Criteria) this;
        }

        public Criteria andFphoneEqualTo(String value) {
            addCriterion("fphone =", value, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneNotEqualTo(String value) {
            addCriterion("fphone <>", value, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneGreaterThan(String value) {
            addCriterion("fphone >", value, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneGreaterThanOrEqualTo(String value) {
            addCriterion("fphone >=", value, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneLessThan(String value) {
            addCriterion("fphone <", value, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneLessThanOrEqualTo(String value) {
            addCriterion("fphone <=", value, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneLike(String value) {
            addCriterion("fphone like", value, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneNotLike(String value) {
            addCriterion("fphone not like", value, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneIn(List<String> values) {
            addCriterion("fphone in", values, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneNotIn(List<String> values) {
            addCriterion("fphone not in", values, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneBetween(String value1, String value2) {
            addCriterion("fphone between", value1, value2, "fphone");
            return (Criteria) this;
        }

        public Criteria andFphoneNotBetween(String value1, String value2) {
            addCriterion("fphone not between", value1, value2, "fphone");
            return (Criteria) this;
        }

        public Criteria andFstarIsNull() {
            addCriterion("fstar is null");
            return (Criteria) this;
        }

        public Criteria andFstarIsNotNull() {
            addCriterion("fstar is not null");
            return (Criteria) this;
        }

        public Criteria andFstarEqualTo(String value) {
            addCriterion("fstar =", value, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarNotEqualTo(String value) {
            addCriterion("fstar <>", value, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarGreaterThan(String value) {
            addCriterion("fstar >", value, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarGreaterThanOrEqualTo(String value) {
            addCriterion("fstar >=", value, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarLessThan(String value) {
            addCriterion("fstar <", value, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarLessThanOrEqualTo(String value) {
            addCriterion("fstar <=", value, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarLike(String value) {
            addCriterion("fstar like", value, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarNotLike(String value) {
            addCriterion("fstar not like", value, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarIn(List<String> values) {
            addCriterion("fstar in", values, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarNotIn(List<String> values) {
            addCriterion("fstar not in", values, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarBetween(String value1, String value2) {
            addCriterion("fstar between", value1, value2, "fstar");
            return (Criteria) this;
        }

        public Criteria andFstarNotBetween(String value1, String value2) {
            addCriterion("fstar not between", value1, value2, "fstar");
            return (Criteria) this;
        }

        public Criteria andFendIsNull() {
            addCriterion("fend is null");
            return (Criteria) this;
        }

        public Criteria andFendIsNotNull() {
            addCriterion("fend is not null");
            return (Criteria) this;
        }

        public Criteria andFendEqualTo(String value) {
            addCriterion("fend =", value, "fend");
            return (Criteria) this;
        }

        public Criteria andFendNotEqualTo(String value) {
            addCriterion("fend <>", value, "fend");
            return (Criteria) this;
        }

        public Criteria andFendGreaterThan(String value) {
            addCriterion("fend >", value, "fend");
            return (Criteria) this;
        }

        public Criteria andFendGreaterThanOrEqualTo(String value) {
            addCriterion("fend >=", value, "fend");
            return (Criteria) this;
        }

        public Criteria andFendLessThan(String value) {
            addCriterion("fend <", value, "fend");
            return (Criteria) this;
        }

        public Criteria andFendLessThanOrEqualTo(String value) {
            addCriterion("fend <=", value, "fend");
            return (Criteria) this;
        }

        public Criteria andFendLike(String value) {
            addCriterion("fend like", value, "fend");
            return (Criteria) this;
        }

        public Criteria andFendNotLike(String value) {
            addCriterion("fend not like", value, "fend");
            return (Criteria) this;
        }

        public Criteria andFendIn(List<String> values) {
            addCriterion("fend in", values, "fend");
            return (Criteria) this;
        }

        public Criteria andFendNotIn(List<String> values) {
            addCriterion("fend not in", values, "fend");
            return (Criteria) this;
        }

        public Criteria andFendBetween(String value1, String value2) {
            addCriterion("fend between", value1, value2, "fend");
            return (Criteria) this;
        }

        public Criteria andFendNotBetween(String value1, String value2) {
            addCriterion("fend not between", value1, value2, "fend");
            return (Criteria) this;
        }

        public Criteria andFsumIsNull() {
            addCriterion("fsum is null");
            return (Criteria) this;
        }

        public Criteria andFsumIsNotNull() {
            addCriterion("fsum is not null");
            return (Criteria) this;
        }

        public Criteria andFsumEqualTo(String value) {
            addCriterion("fsum =", value, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumNotEqualTo(String value) {
            addCriterion("fsum <>", value, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumGreaterThan(String value) {
            addCriterion("fsum >", value, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumGreaterThanOrEqualTo(String value) {
            addCriterion("fsum >=", value, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumLessThan(String value) {
            addCriterion("fsum <", value, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumLessThanOrEqualTo(String value) {
            addCriterion("fsum <=", value, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumLike(String value) {
            addCriterion("fsum like", value, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumNotLike(String value) {
            addCriterion("fsum not like", value, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumIn(List<String> values) {
            addCriterion("fsum in", values, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumNotIn(List<String> values) {
            addCriterion("fsum not in", values, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumBetween(String value1, String value2) {
            addCriterion("fsum between", value1, value2, "fsum");
            return (Criteria) this;
        }

        public Criteria andFsumNotBetween(String value1, String value2) {
            addCriterion("fsum not between", value1, value2, "fsum");
            return (Criteria) this;
        }

        public Criteria andFidIsNull() {
            addCriterion("fid is null");
            return (Criteria) this;
        }

        public Criteria andFidIsNotNull() {
            addCriterion("fid is not null");
            return (Criteria) this;
        }

        public Criteria andFidEqualTo(String value) {
            addCriterion("fid =", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotEqualTo(String value) {
            addCriterion("fid <>", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidGreaterThan(String value) {
            addCriterion("fid >", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidGreaterThanOrEqualTo(String value) {
            addCriterion("fid >=", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidLessThan(String value) {
            addCriterion("fid <", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidLessThanOrEqualTo(String value) {
            addCriterion("fid <=", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidLike(String value) {
            addCriterion("fid like", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotLike(String value) {
            addCriterion("fid not like", value, "fid");
            return (Criteria) this;
        }

        public Criteria andFidIn(List<String> values) {
            addCriterion("fid in", values, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotIn(List<String> values) {
            addCriterion("fid not in", values, "fid");
            return (Criteria) this;
        }

        public Criteria andFidBetween(String value1, String value2) {
            addCriterion("fid between", value1, value2, "fid");
            return (Criteria) this;
        }

        public Criteria andFidNotBetween(String value1, String value2) {
            addCriterion("fid not between", value1, value2, "fid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}